<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="ThemeBucket">
<link rel="shortcut icon" type="image/x-icon"
	href="${ctxPath }/static/images/lukebang320.ico" media="screen" />
<link rel="icon" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link rel="bookmark" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link
	href="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.css"
	rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-timepicker/css/timepicker.css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-datetimepicker2/css/datetimepicker-custom.css" />
<title>新建安装订单</title>
</head>
<body class="sticky-header"
	onload="indexmenu('${oneMenu}','${twoMenu}');">
	<%@ include file="../index/index.jsp"%>
	<section>
		<div class="main-content">
			<!-- 地址栏-->
			<div class="page-heading">
				<h3>鹿客帮下单</h3>
				<ul class="breadcrumb">
					<li><a>任务管理</a></li>
					<li class="active">下安装单</li>
				</ul>
			</div>
			<!--这里是写一些内容的  -->
			<h3>&nbsp;&nbsp;&nbsp;下安装订单:</h3>
			<div class="portlet-body form" id="makeInstallIndentForm">
				<div class="form-wizard">
					<div class="form-body">
						<div class="col-md-offset-1 col-md-10">
							<ul class="nav nav-pills nav-justified steps" id="cite_ul_id">
								<li><a href="#subjec1" data-toggle="tab" class="step">
										<span class="number"> 1 </span> <span class="desc"> <i
											class="fa fa-check"></i>填写基本信息
									</span>
								</a></li>
								<li><a href="#subjec2" data-toggle="tab" class="step">
										<span class="number"> 2 </span> <span class="desc"> <i
											class="fa fa-check"></i>填写窗帘信息
									</span>
								</a></li>
							</ul>
							<!-- 进度条 -->
							<div id="bar" class="progress progress-striped"
								role="progressbar">
								<div class="progress-bar progress-bar-success"></div>
							</div>
						</div>
					</div>
					<div class="tab-content">
						<div class="tab-pane active" id="subjec1">
							<form id="defaultForm" class="form-horizontal" method="post"
								action="">
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">顾客姓名：</label>
									<div class="col-md-4">
										<input type="text" placeholder="顾客姓名" class="form-control"
											name="name">
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">电话：</label>
									<div class="col-md-4">
										<input type="text" placeholder="电话"
											onkeyup="this.value=this.value.replace(/\D/g,'')"
											class="form-control" name="phone">
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">维修时间：</label>
									<div class="col-md-4">
										<input size="16" type="text" value="2016-12-26 14:45:00"
											class="form_datetime-adv form-control" name="subscribeTime">
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">维修内容：</label>
									<div class="col-md-4">
										<textarea class="form-control" name="weiXbody" rows="2"></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">地址：</label>
									<div>
										<div class="col-sm-1">
											<select class="form-control" name="Province" id="Province"
												style="width: 129px;">
												<option value="999999">省</option>
											</select>
										</div>
										<div class="col-sm-1">
											<select class="form-control" name="City" id="City"
												style="width: 129px;">
												<option value="999999">市</option>
											</select>
										</div>
										<div class="col-sm-1">
											<select class="form-control" name="country"
												id="countrySelect" style="width: 129px;">
												<option value="999999">区</option>
											</select>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">详细地址：</label>
									<div class="col-md-4">
										<textarea name="detailRepairAddress" placeholder="详细地址"
											rows="2" class="form-control"></textarea>
									</div>
								</div>
								<div id="accesstorySelectDiv" style="display: none">
									<div class="form-group">
										<label class="col-md-2 col-sm-2 control-label">选取配件：</label>
										<div class="col-md-4">
											<div class="col-md-4">
												<input id="" class='input_accText' type="text" value="0"
													data-postfix="对" name="input_crampetNumber">
												<p id="txt_crampetPrice" class="help-block">壁钩安装费5元/对</p>
											</div>
											<div class="col-md-4">
												<input id="" class='input_accText' type="text" value="0"
													data-postfix="套" name="input_fourClawNumber">
												<p id="txt_fourClawPrice" class="help-block">四抓钩安装费5元/套</p>
											</div>
											<div class="col-md-4">
												<input class='input_accText' id="" type="text" value="0"
													data-postfix="台" name="input_motorNumber">
												<p id="txt_motorPrice" class="help-block">电机安装费5元/台</p>
											</div>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">是否需要取货：</label>
									<div class="radio-list">
										<label class="radio-control"> <input type="radio"
											name="isNeedTakeGoods"
											onchange="changeNeedPickUpForIndent(this)" value="0" checked>
											不需要取货
										</label>&nbsp;&nbsp;&nbsp;<label class="radio-control"> <input
											type="radio" name="isNeedTakeGoods" value="1"
											onchange="changeNeedPickUpForIndent(this)"> 需要取货
										</label>
									</div>
								</div>
								<div id="pickupDetailDIV" style="display: none">
									<div class="form-group">
										<label class="col-md-2 col-sm-2 control-label">联系人手机：</label>
										<div class="col-md-4">
											<input type="text" placeholder="联系人手机" class="form-control"
												name="pickupPhone" id="pickUpPhoneTxt">
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 col-sm-2 control-label">取货地址：</label>
										<div>
											<div class="col-sm-1">
												<select class="form-control" name="pickupProvince"
													id="pickupProvince" style="width: 129px;">
													<option value="999999">省</option>
												</select>
											</div>
											<div class="col-sm-1">
												<select class="form-control" name="pickupCity"
													id="pickupCity" style="width: 129px;">
													<option value="999999">市</option>
												</select>
											</div>
											<div class="col-sm-1">
												<select class="form-control" name="pickupCountry"
													id="pickupCountrySelect" style="width: 129px;">
													<option value="999999">区</option>
												</select>
											</div>
										</div>
									</div>
									<div class="form-group">
										<label class="col-md-2 col-sm-2 control-label">取货详细地址：</label>
										<div class="col-md-4">
											<textarea name="pickAddress" placeholder="详细地址" rows="2"
												class="form-control"></textarea>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">基本维修费：</label>
									<div class="col-md-4">
										<input type="text" placeholder="维修费" readonly
											class="form-control" id="txt_basicRepairPrice"
											name="indentPrice">
									</div>
								</div>
								<div class="form-group">
									<label class="col-md-2 col-sm-2 control-label">悬赏费用：</label>
									<div class="col-md-2">
										<input id="" type="text" value="0" name="addPrice">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">鹿客安心宝(5元)：</label>
								</div>
								<div id="anxinbao"
									style="position: relative; margin-left: 215px; margin-top: -50px">
									<div class="checkbox-inline">
										<label> <input type="checkbox" name="relievedBao"
											value="1" checked="checked">
										</label>
									</div>
								</div>
							</form>
						</div>
						<div class="tab-pane" id="subjec2">
							<div id="toolbar" class="btn-group">
								<button type="button"
									onclick="javascript:$('#addCurtainModal').modal('show');"
									class="btn btn-primary fa fa-plus">添加窗帘</button>
							</div>
							<div class="col-md-offset-1 col-md-10">
								<table id="indentGoods_Table">
								</table>
							</div>
						</div>
					</div>
				</div>
				<div class="form-actions">
					<div class="row">
						<div class="col-md-offset-3 col-md-9">
							<a href="javascript:void(0)"
								class="btn btn-lg default button-previous" style="display: none">
								<i class="m-icon-swapleft"></i>上一步
							</a> <a href="javascript:void(0)" id="button_next"
								class="btn  btn-lg blue button-next"> 下一步<i
								class="m-icon-swapright m-icon-white"></i>
							</a>
							<button type="button" id="save"
								class="btn btn-info finish button-submit" style="display: none">下单</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<!--  查看详细modal  -->
	<div class="modal fade" style="top: 100px;" id="addCurtainModal"
		tabindex="-1" role="dialog"
		aria-labelledby="addCurtainModalModalLabel" aria-hidden="true">
		<div class="modal-dialog" style="width: 50%">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="addCurtainModalModalLabel">添加订单的详细</h4>
				</div>
				<div class="modal-body">我是添加尺寸</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭
					</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>
	<!-- 查看安装订单详细价钱modal -->
	<div id="viewIndentPriceDetailModal" class="modal fade" role="dialog"
		aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true"></button>
					<h4 class="modal-title">查看本订单的详细扣费信息</h4>
				</div>
				<div class="modal-body form">
					<form action="#" class="form-horizontal form-row-seperated"
						role="form">
						<div class="form-group">
							<label class="col-sm-5 control-label">该城市基本安装房间数：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_basicRoomNumber"
										class="form-control" />
								</div>
								<p class="help-block">该房间数以内统一价格。</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">该城市基本安装价格：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_basicMeasureMoney"
										class="form-control" />
								</div>
								<p class="help-block">基本安装数量之内统一价格。</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">安装房间数价格区间一：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_oneSection"
										class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">安装房间数价格区间二：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_twoSection"
										class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-group last">
							<label class="col-sm-5 control-label">安装费用和：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_customerMeasureMoney"
										class="form-control" />
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn grey-salsa btn-outline"
						data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript"
	src="${ctxPath }/static/js/bootstrap-datetimepicker2/js/bootstrap-datetimepicker.js"></script>
<script
	src="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.js"
	type="text/javascript"></script>
<script
	src="https://cdn.bootcss.com/twitter-bootstrap-wizard/1.2/jquery.bootstrap.wizard.js"></script>
<!-- tables插件的引用 -->
<script src="${ctxPath}/static/js/bootstrap-table/bootstrap-table.js"></script>
<link href="${ctxPath}/static/js/bootstrap-table/bootstrap-table.css"
	rel="stylesheet" />
<script
	src="${ctxPath}/static/js/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<!--pickers initialization-->

<script src="${ctxPath }/static/js/pickers-init.js"></script>
<script type="text/javascript">
	$("#City").change(
			function() {
				$("#countrySelect>option").first().nextAll().remove();
				if (($("#City").val()).indexOf("999999") < 0) {
					$.post("${ctxPath }/territory/selectAvailableCountry", {
						cityCode : $("#City").val()
					}, function(data) {
						$.each(data, function(i, option) {
							$("#countrySelect").append(
									'<option value="'+option.code+'">'
											+ option.country + '</option>');
						});
					});
				}
				loadAccessoryInputTouchSpin($("#Province").val() + "/"
						+ $("#City").val());
			});
	$("#Province").change(
			function() {
				$("#City>option").first().nextAll().remove();
				$("#countrySelect>option").first().nextAll().remove();
				if (($("#Province").val()).indexOf("999999") < 0) {
					$.post("${ctxPath }/territory/selectAvailableCity", {
						provinceCode : $("#Province").val()
					}, function(data) {
						$.each(data, function(i, option) {
							$("#City").append(
									'<option value="'+option.code+'">'
											+ option.city + '</option>');
						});
					});
				} else {
					loadAccessoryInputTouchSpin($("#Province").val() + "/"
							+ $("#City").val());
				}
			});
	$("#pickupCity").change(
			function() {
				$("#pickupCountrySelect>option").first().nextAll().remove();
				$.post("${ctxPath }/territory/selectAvailableCountry", {
					cityCode : $("#pickupCity").val()
				}, function(data) {
					$.each(data, function(i, option) {
						$("#pickupCountrySelect").append(
								'<option value="'+option.code+'">'
										+ option.country + '</option>');
					});
				});
			});
	$("#pickupProvince").change(
			function() {
				$("#pickupCity>option").first().nextAll().remove();
				$("#pickupCountrySelect>option").first().nextAll().remove();
				$.post("${ctxPath }/territory/selectAvailableCity", {
					provinceCode : $("#pickupProvince").val()
				}, function(data) {
					$.each(data, function(i, option) {
						$("#pickupCity").append(
								'<option value="'+option.code+'">'
										+ option.city + '</option>');
					});
				});
			});
	$(document)
			.ready(
					function() {
						$('i', $('#cite_ul_id')).removeClass("fa fa-check");
						$('#makeInstallIndentForm')
								.bootstrapWizard(
										{
											'nextSelector' : '.button-next',
											'previousSelector' : '.button-previous',
											onTabClick : function(tab,
													navigation, index,
													clickedIndex) {
												return false;//使a标签失去点击事件
											},
											onNext : function(tab, navigation,
													index) {
												assessHandleTitle(tab,
														navigation, index);
											},
											onPrevious : function(tab,
													navigation, index) {
												assessHandleTitle(tab,
														navigation, index);
											},
											onTabShow : function(tab,
													navigation, index) {
												var total = navigation
														.find('li').length;
												var current = index + 1;
												var percent = (current / total) * 100;
												$('.progress-bar').css({
													width : percent + '%'
												});
											}
										});
						function assessHandleTitle(tab, navigation, index) {
							var total = navigation.find('li').length;//得到li标签的长度
							var current = index + 1;
							$('li', $('#makeInstallIndentForm')).removeClass(
									"done");
							$('i', $('#cite_ul_id')).removeClass("fa fa-check");
							var li_list = navigation.find('li');
							for (var i = 0; i < index; i++) {
								$(li_list[i]).addClass("done");
								var iStyle = $(li_list[i]).find('i');
								$(iStyle).addClass('fa fa-check');
							}
							if (current == 1) {
								$('.button-previous').hide();//隐藏上一步按钮
							} else {
								$('.button-previous').show();//显示上一步按钮
							}
							if (current >= total) {
								$('.button-next').hide();//隐藏下一步按钮
								$('.button-submit').show();//显示提交按钮
							} else {
								$('.button-next').show();//显示上一步按钮
								$('.button-submit').hide();//隐藏保存按钮
							}
						}
						$("input[name='addPrice']").TouchSpin({
							min : 0,
							max : 100,
							step : 1,
							decimals : 2,
							boostat : 5,
							maxboostedstep : 10,
							postfix : '元'
						});
						$(".input_accText").TouchSpin({
							min : 0,
							max : 100,
							step : 1,
							boostat : 5,
							maxboostedstep : 10,
						});
						$("#Province>option").first().nextAll().remove();
						$.post("${ctxPath }/territory/selectAvailableProvince",
								function(data) {
									//这是所有的省份
									$.each(data, function(i, option) {
										$("#Province").append(
												'<option value="'+option.code+'">'
														+ option.province
														+ '</option>');
									});
								});
						$("#pickupProvince>option").first().nextAll().remove();
						$.post("${ctxPath }/territory/selectAvailableProvince",
								function(data) {
									//这是所有的省份
									$.each(data, function(i, option) {
										$("#pickupProvince").append(
												'<option value="'+option.code+'">'
														+ option.province
														+ '</option>');
									});
								});
						$('#indentGoods_Table')
								.bootstrapTable(
										{
											toolbar : '#toolbar', //工具按钮用哪个容器
											height : 500,
											columns : [
													{
														field : 'type_script',
														title : '安装基本信息',
														align : "center",
														width : "10%",
														formatter : function(
																value, row,
																index) {
															if (row.type == 0) {
																return "<br/>房间："
																		+ row.goodForRoom
																		+ "<br/>品种：布艺帘";
															} else {
																return "<br/>房间："
																		+ row.goodForRoom
																		+ "<br/>品种：成品帘";
															}
														}
													},
													{
														field : 'good',
														title : '安装信息',
														align : "center",
														width : "10%",
														formatter : function(
																value, row,
																index) {
															if (row.type == 0) {
																var styleStr = "";
																var structureStr = "";
																if (value.structure == 0) {
																	structureStr = '单层布';
																} else if (value.structure == 1) {
																	structureStr = '单层纱';
																} else {
																	structureStr = '布加纱';
																}
																if (value.style == 0) {
																	styleStr = "打孔";
																} else if (value.style == 1) {
																	styleStr = "韩折";
																} else if (value.style == 2) {
																	styleStr = "挂钩";
																} else if (value.style == 3) {
																	styleStr = "韩折或挂钩";
																} else {
																	styleStr = "帘头宽";
																}
																return "结构："
																		+ structureStr
																		+ "<br/>款式："
																		+ styleStr;
															} else {
																return "无结构";
															}
														}
													},
													{
														field : 'type',
														title : '款式信息',
														align : "left",
														width : "25%",
														formatter : function(
																value, row,
																index) {
															if (value == 0) {
																return "窗户打开方式："
																		+ row.window
																		+ "<br/>布帘安装位置："
																		+ row.installSite
																		+ "<br/>布帘配件："
																		+ row.accessoriesType
																		+ "，"
																		+ row.decorativeHead
																		+ "<br/>安装方式："
																		+ row.pinstallSite
																		+ "<br/>安装配件："
																		+ row.installAaccessries;
															} else {
																return "窗户打开方式："
																		+ row.window
																		+ "<br/>安装配件："
																		+ row.accessoriesType
																		+ "<br/>安装方式："
																		+ row.installWay;
															}
														}
													},
													{
														field : 'type',
														title : '尺寸信息',
														align : "center",
														width : "280px",
														formatter : function(
																value, row,
																index) {
															if (value == 0) {
																return "宽："
																		+ row.wide
																		+ "（米），高："
																		+ row.high
																		+ "（米）"
																		+ "<br/>杆长："
																		+ row.wide
																		+ "（米）";
															} else {
																return "宽："
																		+ row.wide
																		+ "（米），高："
																		+ row.high
																		+ "（米）";
															}
														}
													},
													{
														field : 'remark',
														title : '备注',
														width : "15%",
														align : "center"
													},
													{
														field : 'pictures',
														title : '安装拍照',
														align : "left",
														width : "150px",
														formatter : function(
																value, row,
																index) {
															var returnVal = "";
															$
																	.each(
																			value,
																			function(
																					index,
																					valueChild) {
																				returnVal = returnVal
																						+ '<a href="http://okwc9gyzs.bkt.clouddn.com/'
																						+ valueChild.img
																						+ '?imageView2/1/w/800/h/600"  class="fancybox-button"> <img src="http://okwc9gyzs.bkt.clouddn.com/'
																						+ valueChild.img
																						+ '?imageView2/1/w/40/h/30"    alt="" /></a>';

																			});
															return returnVal;
														}
													} ]
										});
					});
	//字符串工具类
	function updateString(data) {
		data = data.replace(/&/g, "\",\"");
		data = data.replace(/=/g, "\":\"");
		data = "{\"" + data + "\"}";
		return data;
	}
	function myfresh() {
		window.location.href = window.location.href;
	}
	function loadAccessoryInputTouchSpin(cityCode) {
		if (cityCode.indexOf("999999") > 0 || cityCode.indexOf("999999") == 0) {
			$("#accesstorySelectDiv").hide();
		} else {
			$.post("${ctxPath }/cityCostRule/queryCostRuleByCityCode", {
				cityCode : cityCode
			}, function(data) {
				/* alert("此城市起步安装价钱是：" + data.repairStartingFare); */
				$("#txt_basicRepairPrice").val(data.repairStartingFare + "元");
				$("#txt_crampetPrice").html("壁钩安装费5元/对");
				$("#txt_fourClawPrice").html("四抓钩安装费5元/套");
				$("#txt_motorPrice").html("电机安装费5元/台");
				$("#accesstorySelectDiv").show();
			});
		}
	}
	function toAddRepairIndent() {
		if ($('input[name="name"]').val() == null
				|| $('input[name="name"]').val().length == 0
				|| $('input[name="name"]').val() == '') {
			toastr.error("请填写名称！");
		} else if ($('input[name="phone"]').val() == null
				|| $('input[name="phone"]').val().length == 0
				|| $('input[name="phone"]').val() == ''
				|| !(/^1[34578]\d{9}$/.test($('input[name="phone"]').val()))) {
			toastr.error("手机号码有误，请重填！");
		} else if ($('textarea[name="weiXbody"]').val() == null
				|| $('textarea[name="weiXbody"]').val().length == 0
				|| $('textarea[name="weiXbody"]').val() == '') {
			toastr.error("请填写安装信息！");
		} else if ($("#Province").val() == 999999 || $("#City").val() == 999999
				|| $("#countrySelect").val() == 999999) {
			toastr.error("请填写正确的地址信息！");
		} else if ($('textarea[name="detailRepairAddress"]').val() == null
				|| $('textarea[name="detailRepairAddress"]').val().length == 0
				|| $('textarea[name="detailRepairAddress"]').val() == '') {
			toastr.error("请填写详细地址");
		} else {
			var context = updateString($("#defaultForm").serialize());
			context = decodeURIComponent(context, true);
			context = JSON.parse(context);
			var installAddress = {};
			installAddress.Province = context.Province;
			installAddress.City = context.City;
			installAddress.Village = context.Village;
			var date = context.subscribeTime;
			date = date.substring(0, 19);
			date = date.replace(/\+/g, " ");
			date = date.replace(/-/g, '/');
			var timestamp = new Date(date).getTime();
			window.open("../indent/addRepairIndent.do?name=" + context.name
					+ "&phone=" + context.phone + "&timestamp=" + timestamp
					+ "&detailAddress=" + context.detailRepairAddress
					+ "&weiXbody=" + context.weiXbody + "&province="
					+ context.Province + "&city=" + context.City + "&country="
					+ context.country + "&orderTime=" + context.subscribeTime
					+ "&addPrice=" + context.addPrice + "&merchantsPrice="
					+ context.indentPrice + "&relievedBao="
					+ context.relievedBao + "&isNeedTakeGoods="
					+ context.isNeedTakeGoods + "&crampetNumber="
					+ context.input_crampetNumber + "&fourClawNumber="
					+ context.input_fourClawNumber + "&motorNumber="
					+ context.input_motorNumber + "&pickupPhone="
					+ context.pickupPhone + "&pickupProvince="
					+ context.pickupProvince + "&pickupCity="
					+ context.pickupCity + "&pickupCountry="
					+ context.pickupCountry + "&pickAddress="
					+ context.pickAddress);

		}
	}
	function needPickUpRadioChang(radio) {
		if (radio.value == 0) {
			$("#pickUpPhoneTxt").attr("readonly", "readonly");
			$("#pickUpAddressTxt").attr("readonly", "readonly");
		} else {
			$("#pickUpPhoneTxt").removeAttr("readonly");
			$("#pickUpAddressTxt").removeAttr("readonly");
		}
	}
	function changeNeedPickUpForIndent(radio) {
		if (radio.value == 0) {
			$("#pickupDetailDIV").hide();
		} else {
			$("#pickupDetailDIV").show();
		}
	}
</script>
</html>
